package com.groupbuying.sysconfig.dto;

import java.util.List;

/**
 * class_name: TreeNode
 * package: com.groupbuying.sysconfig.dto
 * description: Tree数据结构，用于递归构建树模型
 * creat_user: Ywxd
 * creat_date: 2019/3/14
 * creat_time: 15:10
 **/
public class AreaDTO{

    private String id;

    private String value;

    private String parentId;

    private String label;

    private List<AreaDTO> children;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public List<AreaDTO> getChildren() {
        return children;
    }

    public void setChildren(List<AreaDTO> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "AreaDTO{" +
                "value='" + value + '\'' +
                ", parentId='" + parentId + '\'' +
                ", label='" + label + '\'' +
                ", children=" + children +
                '}';
    }
}
